/**
 * Created by yoyoyk on 2017/6/29.
 */
/**
 * Created by Dalyn on 2017/3/16.
 */
import Relay from "react-relay";

export default class saveSampleCreate  extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { saveSampleCreate  }`;
    }

    getVariables() {
        return {
            argsInput: {
                orderId: this.props.orderId,
                uid: this.props.uid,
                username:this.props.username,
                enterpriseId:this.props.enterpriseId,
                enterpriseName:this.props.enterpriseName,
                approveType:this.props.approveType,
                mark:this.props.mark,
                partA:this.props.partA,
                partAName:this.props.partAName,
                fileJSON:this.props.fileJSON,
                dateJson:this.props.dateJson
            }
        }
    }

    getFatQuery() {
        return Relay.QL`fragment on saveSampleCreatePayload {
            responseData {
                errorCode
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
                fragment on saveSampleCreatePayload {
                    responseData {
                        errorCode
                    }
                }
            `]
        }];
    }

}
